<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Admin extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	function index()
	{
		$this->load->helper('url');
		$this->load->library('ion_auth');
		if (!$this->ion_auth->logged_in())
		{
			redirect('auth/login','refresh');
		} else {
			redirect('top/index','refresh');

		}
	}


}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */